import axios from 'axios';

//创建实例
let instance = axios.create({
  baseURL: process.env.REACT_APP_BASEURL
});

//声明响应拦截器
instance.interceptors.response.use(response => {
  //转换结果
  return response.data;
});

//暴露
export default instance;